import request from '@/utils/request';

export function getList() {
  return request({
    url: '/api/database/getList',
    method: 'get'
  });
}

export function copy() {
  return request({
    url: '/api/database/copy',
    method: 'get'
  });
}

export function use(fileName) {
  return request({
    url: `/api/database/use/${fileName}`,
    method: 'get'
  });
}

export function deleteFile(fileName) {
  return request({
    url: `/api/database/${fileName}`,
    method: 'delete'
  });
}